//
//  MovieViewController.m
//  NBAApp
//
//  Created by 刘意明 on 16/11/30.
//  Copyright © 2016年 Manito. All rights reserved.
//

#import "MovieViewController.h"
#import "MyViewController.h"//我的

@interface MovieViewController ()

@end

@implementation MovieViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor greenColor];
    self.navigationItem.title=@"视频";
    
    UIBarButtonItem *right =[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"人物.png"] style:UIBarButtonItemStylePlain target:self action:@selector(ClickMy:)];
    self.navigationItem.rightBarButtonItem=right;
    
    UIBarButtonItem *left =[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"篮球.png"] style:UIBarButtonItemStylePlain target:self action:@selector(Click:)];
    self.navigationItem.leftBarButtonItem=left;
}
//点击右上角跳转到我的
- (void)ClickMy:(UIBarButtonItem *)btn {
    MyViewController *mm =[[MyViewController alloc] init];
    mm.hidesBottomBarWhenPushed = YES;//隐藏tabbar
    [self.navigationController pushViewController:mm animated:YES];
    mm.hidesBottomBarWhenPushed = NO;
}
//点击右上角跳转到篮球
- (void)Click:(UIBarButtonItem *)btn {
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
